Feature: 13. Pelco_D Tests
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 0
Before
Hook
When
I pan to 90 degrees via Pelco-D
And
I wait 10 seconds
java.lang.AssertionError: element Detection Bar Value not found at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_text_on_element_is(WaitForElement.java:503) at ✽.the text on element Detection Bar Value is "90"(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:19)
And
I extract Pan and Tilt values
And
the Pan value is 90
And
the Tilt value is 0
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 0
Before
Hook
When
I pan to 270 degrees via Pelco-D
And
I wait 10 seconds
java.lang.AssertionError: element Detection Bar Value not found at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_text_on_element_is(WaitForElement.java:503) at ✽.the text on element Detection Bar Value is "-90"(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:28)
And
I extract Pan and Tilt values
And
the Pan value is -90
And
the Tilt value is 0
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 0
Before
Hook
When
I pan to 210 degrees via Pelco-D
And
I wait 10 seconds
java.lang.AssertionError: element Detection Bar Value not found at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_text_on_element_is(WaitForElement.java:503) at ✽.the text on element Detection Bar Value is "-150"(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:36)
And
I extract Pan and Tilt values
And
the Pan value is -150
And
the Tilt value is 0
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 0
Before
Hook
When
I tilt to 5 degrees via Pelco-D
And
I wait 10 seconds
java.lang.AssertionError: element Detection Bar Value not found at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_text_on_element_is(WaitForElement.java:503) at ✽.the text on element Detection Bar Value is "0"(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:44)
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 5
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 0
Before
Hook
When
I tilt to -15 degrees via Pelco-D
And
I wait 10 seconds
java.lang.AssertionError: element Detection Bar Value not found at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_text_on_element_is(WaitForElement.java:503) at ✽.the text on element Detection Bar Value is "0"(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:52)
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is -15
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 0
Before
Hook
When
I tilt to 30 degrees via Pelco-D
And
I wait 10 seconds
java.lang.AssertionError: element Detection Bar Value not found at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_text_on_element_is(WaitForElement.java:503) at ✽.the text on element Detection Bar Value is "0"(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:60)
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 20
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
And
the Pan value is 0
And
the Tilt value is 0
Before
Hook
When
I pan clockwise, medium speed via Pelco-D
And
I wait 5 seconds
And
I extract Pan and Tilt values
java.lang.AssertionError at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.fail(Assert.java:95) at extern.bsb.tests.ui.when.FileOperations.checkifValueIsGreaterOrSmaller(FileOperations.java:324) at ✽.the value of Pan is greater than 0(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:69)
And
the Tilt value is 0
And
I stop the PTU movement via Pelco-D
And
I extract Pan and Tilt values
And
the Tilt value is 0
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
java.lang.AssertionError at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at extern.bsb.tests.ui.when.FileOperations.checkValueOfVariable(FileOperations.java:304) at ✽.the Pan value is 0(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:12)
And
the Tilt value is 0
Before
Hook
When
I pan anti-clockwise, high speed via Pelco-D
And
I wait 4 seconds
And
I extract Pan and Tilt values
Then
the value of Pan is smaller than 0
And
the Tilt value is 0
And
I stop the PTU movement via Pelco-D
And
I extract Pan and Tilt values
And
the Tilt value is 0
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
java.lang.AssertionError at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at extern.bsb.tests.ui.when.FileOperations.checkValueOfVariable(FileOperations.java:304) at ✽.the Pan value is 0(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:12)
And
the Tilt value is 0
Before
Hook
When
I tilt negative, high speed via Pelco-D
And
I wait 7 seconds
And
I extract Pan and Tilt values
And
the Tilt value is -18
And
the Pan value is 0
And
I stop the PTU movement via Pelco-D
Given
I'm using the app
And
class "initialLoader" is invisible
And
the MANUAL is active
And
the Primary Camera Rotation Button is clicked
And
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
And
I wait 10 seconds
And
I extract Pan and Tilt values
java.lang.AssertionError at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at extern.bsb.tests.ui.when.FileOperations.checkValueOfVariable(FileOperations.java:304) at ✽.the Pan value is 0(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/13.Pelco_D.feature:12)
And
the Tilt value is 0
Before
Hook
When
I tilt positive, low speed via Pelco-D
And
I wait 7 seconds
And
I extract Pan and Tilt values
And
the value of Tilt is greater than 0
And
the Pan value is 0
And
I stop the PTU movement via Pelco-D